//
//  JSQMessage+ICT.h
//  iCareTek
//
//  Created by Magic on 15/6/18.
//  Copyright (c) 2015年 iCareTech. All rights reserved.
//

#import "JSQMessage.h"
#import "XMPPJID.h"

@class ICTChatMessageEntity;

@interface JSQMessage (ICT)

@property (nonatomic, strong) NSString *fileName;

//医生(患者)患教资料、量表、随访方案消息
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSString *content;
@property (nonatomic, strong) NSString *url;
@property (nonatomic, strong) NSString * sourceId;//sourceId为资料后台存储表id
@property (nonatomic, assign) NSString * sourceType;//sourceType  0 表示患教资料 1 表示量表	2 表示随访方案

// 4.2
@property (nonatomic, strong) NSNumber *messageType;
@property (nonatomic, strong) NSNumber *messageVoiceSize;
@property (nonatomic, strong) NSNumber *messageCtrlType;


@property (nonatomic, strong) NSNumber * dialogueId;
@property (nonatomic, strong) NSNumber * parentId;
@property (nonatomic, strong) NSString * thumbUrl;
@property (nonatomic, strong) NSString * originUrl;
@property (nonatomic, strong) NSString * voiceUrl;


+ (JSQMessage *)messageWithSenderId:(NSString *)senderId
                        displayName:(NSString *)displayName
                           fileName:(NSString *)fileName
                              media:(id<JSQMessageMediaData>)media;

// isForConsult YES: 解析咨询对话数据  NO: 解析OpenFire聊天数据
- (ICTChatMessageEntity *)transToICTMessageWithFriend:(XMPPJID *)jid
                                         isForConsult:(BOOL)isForConsult;
@end
